package br.com.winesys.geta.databinding.component.table;

import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;

public final class Column {

  private String property;
  private String name;
  private int width;
  private boolean editable;
  private TableCellRenderer renderer;
  private TableCellEditor editor;

  protected Column(String property, String name, int width, boolean editable, TableCellRenderer renderer, TableCellEditor editor) {
    super();
    this.property = property;
    this.name = name;
    this.width = width;
    this.editable = editable;
    this.renderer = renderer;
    this.editor = editor;
  }

  public String getProperty() {
    return this.property;
  }

  public String getName() {
    return this.name;
  }

  public int getWidth() {
    return this.width;
  }

  public boolean isEditable() {
    return this.editable;
  }

  public TableCellRenderer getRenderer() {
    return this.renderer;
  }

  public TableCellEditor getEditor() {
    return this.editor;
  }
}